package com.ruoyi.project.business.service.impl;

import java.util.List;

import com.ruoyi.project.business.domain.TgxsUserSuggest;
import com.ruoyi.project.business.mapper.TgxsUserSuggestMapper;
import com.ruoyi.project.business.service.ITgxsUserSuggestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 意见反馈Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-11-06
 */
@Service
public class TgxsUserSuggestServiceImpl implements ITgxsUserSuggestService
{
    @Autowired
    private TgxsUserSuggestMapper tgxsUserSuggestMapper;

    /**
     * 查询意见反馈
     * 
     * @param id 意见反馈ID
     * @return 意见反馈
     */
    @Override
    public TgxsUserSuggest selectTgxsUserSuggestById(Long id)
    {
        return tgxsUserSuggestMapper.selectTgxsUserSuggestById(id);
    }

    /**
     * 查询意见反馈列表
     * 
     * @param tgxsUserSuggest 意见反馈
     * @return 意见反馈
     */
    @Override
    public List<TgxsUserSuggest> selectTgxsUserSuggestList(TgxsUserSuggest tgxsUserSuggest)
    {
        return tgxsUserSuggestMapper.selectTgxsUserSuggestList(tgxsUserSuggest);
    }

    /**
     * 新增意见反馈
     * 
     * @param tgxsUserSuggest 意见反馈
     * @return 结果
     */
    @Override
    public int insertTgxsUserSuggest(TgxsUserSuggest tgxsUserSuggest)
    {
        return tgxsUserSuggestMapper.insertTgxsUserSuggest(tgxsUserSuggest);
    }

    /**
     * 修改意见反馈
     * 
     * @param tgxsUserSuggest 意见反馈
     * @return 结果
     */
    @Override
    public int updateTgxsUserSuggest(TgxsUserSuggest tgxsUserSuggest)
    {
        return tgxsUserSuggestMapper.updateTgxsUserSuggest(tgxsUserSuggest);
    }

    /**
     * 批量删除意见反馈
     * 
     * @param ids 需要删除的意见反馈ID
     * @return 结果
     */
    @Override
    public int deleteTgxsUserSuggestByIds(Long[] ids)
    {
        return tgxsUserSuggestMapper.deleteTgxsUserSuggestByIds(ids);
    }

    /**
     * 删除意见反馈信息
     * 
     * @param id 意见反馈ID
     * @return 结果
     */
    @Override
    public int deleteTgxsUserSuggestById(Long id)
    {
        return tgxsUserSuggestMapper.deleteTgxsUserSuggestById(id);
    }
}